package com.stm.bi.report.demo;

import com.stm.bi.dto.query.DemoChartQuery;
import com.stm.bi.dto.vo.DemoStatisticsVO;
import com.stm.bi.model.Chart;
import com.stm.bi.report.AbsChartQueryExe;
import org.springframework.stereotype.Component;

/**
 * @Author chenyingjun
 * @Desc
 * @Date 2025/2/11 9:52
 */
@Component
public class DemoChartQueryExe extends AbsChartQueryExe<DemoChartQuery,Chart<DemoStatisticsVO>> {
    @Override
    public Chart<DemoStatisticsVO> query(Long orgId, String orgNo, DemoChartQuery query) {
        for(int i = 0;i<3000;i++){
            log.info("test:"+i);
        }
        Chart chart = new Chart();
        chart.setExtend(new DemoStatisticsVO());
        return chart;
    }

    @Override
    public String getReportName() {
        return "图表查询-演示";
    }
}
